import request from '@/utils/request'

// 查询待检任务列表
export function listInspectionTask(query) {
  return request({
    url: '/ldzl-qc/qc/inspectionTask/QcInspectionMiniList',
    method: 'get',
    params: query
  })
}

// 查询批次追溯列表
export function listLotTraceability(query) {
  return request({
    url: '/ldzl-qc/qc/inspectionTask/lotTraceabilityList',
    method: 'get',
    params: query
  })
}

/**
 * 根据批次号查询OQC信息
 */
export function getLotTraceabilityOqc(salesId) {
  return request({
    url: `/ldzl-qc/qc/inspectionTask/lotTraceabilityOqc/${salesId}`,
    method: 'get'
  });
}

/**
 * 根据批次号查询产品销售信息
 */
export function getLotTraceabilitySales(salesId) {
  return request({
    url: `/ldzl-qc/qc/inspectionTask/lotTraceabilitySales/${salesId}`,
    method: 'get'
  });
}

